<?php
/*
  * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */

//segurança
require_once('com/fabriciojf/security/Permission.class.php');
Permission::requireInRole('admin','usuario');
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>JumboCms Administra&ccedil;&atilde;o</title>
        <link rel="shortcut icon" href="templates/themes/adm-default/images/favicon.ico" type="image/x-icon" />
        <link rel="stylesheet" href="templates/themes/adm-default/style.css" media="all" type="text/css" />
        <script type="text/javascript" src="templates/wysiwyg/tiny.js"></script>
    </head>
    <body>
        <div id="header">
        </div>

        <div id="menu-superior">
            <span>JumboCms</span> - Sistema de Gerenciamento de Conte&uacute;do - <span>Tickets Pendentes</span>
        </div>

        <div id="content-admin">&nbsp;
            <div id="bloco">
                {$menusuperior}
                <div class="clear"></div>
                <table>
                    <tr>
                        <td colspan="6">
                            {$criarticket}
                            <form action="do.php?action=TicketListar" method="post">
                                <input type="submit" class="botao" value="Atualizar">
                            </form>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="6" class="titulo">Acompanhamento de Chamados:</th>
                    </tr>
                    <tr>
                        <th>Id</th>
                        <th>Telefone</th>
                        <th>Assunto</th>
                        <th>Data / Hora</th>
                        <th>Status Atual</th>
                        <th>Visualizar</th>
                    </tr>
                    <!-- abre a sessão do loop -->
                    {section name=i loop=$idTicket}
                    <tr>
                        <td class="tdtable">{$idTicket[i]}</td>
                        <td class="tdtable">{$telefone[i]}</td>
                        <td class="tdtable">{$assunto[i]}</td>
                        <td class="tdtable">{$dataHora[i]}</td>
                        <td class="tdtable">{$statusTicket[i]}</td>
                        <td class="tdtable">{$visualizarTicket[i]}</td>
                    </tr>
                    {/section}
                </table>
                {$proximaPagina}
                {$paginaAnterior}

                <p>
                    Obrigado por utilizar nosso sistema de chamados.

                </p>
            </div>
        </div>
        <div id="footer-content">
            <div id="bloco">
                <span>Recursos do Site</span>
                <ul>
                    {section name=i loop=$menuon}
                    <li>{$menuon[i]}</li>
                    {/section}
                </ul>
                <span>Tickets</span>
                <ul>
                    {section name=i loop=$menuticket}
                    <li>{$menuticket[i]}</li>
                    {/section}
                </ul>
            </div>
            <div id="bl2">
                <span>Links Internos</span>
                <ul>
                    <li><a href="#">Localizar no Site</a></li>
                    {section name=i loop=$menupage}
                    <li>{$menupage[i]}</li>
                    {/section}
                </ul>
            </div>
            <div id="bl2">
                <span>JumboCms</span>
                <ul>
                    <li><a href="http://fabriciojf.com">Suporte Jumbo</a></li>
                    <li><a href="mailto:fabriciojf@gmail.com">Entre em Contato</a></li>
                </ul>
                <span>Sobre o Autor</span>
                <ul>
                    <li><a href="http://fabriciojf.com">Sobre o Autor</a></li>
                </ul>
            </div>
            <div class="clear"></div>
        </div>
        <div id="fim-footer"></div>
        <div id="margin-bottom">
            <p>JumboCMS by Fabricio S Costa. Todos os Direitos Reservados. <br />
            Theme By <a href="http://fabriciojf.com">fabriciojf</a></p>
        </div>
    </body>
</html>
